package com.ffyc.cms.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class News {
    /*这里是新闻的类
    * s属性顺序依次为Id,标题,摘要,内容(text),发布时间,
    * 封面图,文章类(类型id),状态,点击量,点赞数量*/
    private Integer id;
    private Integer userId;//新闻用户的id
    private String  title;
    private String  newssummary;
    private String  content;
    private Date publish_time;
    private String coverimage ;
    private Integer state;
    private Integer clicknum;
    private Integer likenum;
    private Admin admin;
    private Date oper_time;
    private User user;
    private Newstype newstype;//封装新闻类型

    //关键字查询
    private String keyWords;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getNewssummary() {
        return newssummary;
    }

    public void setNewssummary(String newssummary) {
        this.newssummary = newssummary;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
   // @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getPublish_time() {
        return publish_time;
    }

    public void setPublish_time(Date publish_time) {
        this.publish_time = publish_time;
    }

    public String getCoverimage() {
        return coverimage;
    }

    public void setCoverimage(String coverimage) {
        this.coverimage = coverimage;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getClicknum() {
        return clicknum;
    }

    public void setClicknum(Integer clicknum) {
        this.clicknum = clicknum;
    }

    public Integer getLikenum() {
        return likenum;
    }

    public void setLikenum(Integer likenum) {
        this.likenum = likenum;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public Date getOper_time() {
        return oper_time;
    }

    public void setOper_time(Date oper_time) {
        this.oper_time = oper_time;
    }

    public Newstype getNewstype() {
        return newstype;
    }

    public void setNewstype(Newstype newstype) {
        this.newstype = newstype;
    }

    public String getKeyWords() {
        return keyWords;
    }

    public void setKeyWords(String keyWords) {
        this.keyWords = keyWords;
    }
}
